package com.easy_helth.util;

import org.springframework.boot.CommandLineRunner;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


public class AutoStartProjectlnDefaultBrowser {
    /**
     * 启动项目自动跳转到登陆页面
     */
    @Configuration
    public class AutoStartProjectInDefaultBrowser implements CommandLineRunner {
        @Bean
        public void run(String ... args) throws Exception {
            try {
                Runtime.getRuntime().exec("cmd /c start http://localhost:8080/backend/page/login/login.html");
            } catch (Exception ex) {
                ex.printStackTrace();
            }
        }
    }
}
